Skip to content

docs: update langchain sdk docs for google#2702

Merged
Pratham-Mishra04 merged 2 commits intomainfrom
04-14-docs_update_langchain_sdk_docs_for_google
Apr 15, 2026
Merged

docs: update langchain sdk docs for google#2702
Pratham-Mishra04 merged 2 commits intomainfrom
04-14-docs_update_langchain_sdk_docs_for_google

Conversation

@BearTS
Copy link
Copy Markdown
Contributor

@BearTS BearTS commented Apr 14, 2026

Summary

Updates the LangChain SDK documentation to use the correct model version and parameter names for Google Generative AI integration.

Changes

  • Updated Google model from gemini-1.5-flash to gemini-2.5-flash in Python and JavaScript examples
  • Changed parameter name from google_api_base to base_url in Python examples to match the correct LangChain API

Type of change

  • Bug fix
  • Feature
  • Refactor
  • Documentation
  • Chore/CI

Affected areas

  • Core (Go)
  • Transports (HTTP)
  • Providers/Integrations
  • Plugins
  • UI (Next.js)
  • Docs

How to test

Verify the documentation examples work correctly with the updated model and parameter names:

# Test Python example
pip install langchain-google-genai
python -c "from langchain_google_genai import ChatGoogleGenerativeAI; llm = ChatGoogleGenerativeAI(model='gemini-2.5-flash', base_url='http://localhost:8080/langchain')"

# Test JavaScript example  
npm install @langchain/google-genai
node -e "const { ChatGoogleGenerativeAI } = require('@langchain/google-genai'); const llm = new ChatGoogleGenerativeAI({ model: 'gemini-2.5-flash', baseURL: 'http://localhost:8080/langchain' });"

Screenshots/Recordings

N/A

Breaking changes

  • Yes
  • No

Related issues

N/A

Security considerations

No security implications - documentation-only changes.

Checklist

  • I read docs/contributing/README.md and followed the guidelines
  • I added/updated tests where appropriate
  • I updated documentation where needed
  • I verified builds succeed (Go and UI)
  • I verified the CI pipeline passes locally if applicable

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 14, 2026

CLA assistant check
All committers have signed the CLA.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 14, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: aef547b9-7d9d-4cb7-9659-bead352291a8

📥 Commits

Reviewing files that changed from the base of the PR and between 28afe7f and e2decb2.

📒 Files selected for processing (1)
  • docs/integrations/langchain-sdk.mdx

📝 Walkthrough

Summary by CodeRabbit

  • Documentation
    • Updated LangChain integration examples to reference the newer Google Gemini model version.
    • Standardized API endpoint parameter naming and updated proxy/local header snippets for consistency across Python and JavaScript examples.

Walkthrough

Documentation update to LangChain SDK integration examples: model references changed from gemini-1.5-flash to gemini-2.5-flash; Python examples rename endpoint argument google_api_basebase_url; JavaScript examples and local proxy snippets rename baseURLbaseUrl.

Changes

Cohort / File(s) Summary
LangChain SDK docs
docs/integrations/langchain-sdk.mdx
Updated all Google/Gemini examples to use model="gemini-2.5-flash". Renamed endpoint/config parameters in code examples: Python google_api_basebase_url; JavaScript baseURLbaseUrl. Updated local "direct headers"/proxy snippet accordingly.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 I hopped through docs with nimble paws,
Swapped flashes and fixed the endpoint clause.
"gemini-2.5" now leads the dance,
base_url and baseUrl in their stance.
A tiny hop, a tidy cause. ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'docs: update langchain sdk docs for google' is vague and generic, lacking specificity about what was actually updated in the documentation. Consider a more specific title that mentions the key changes, such as 'docs: update langchain google integration model and parameter names' to better convey what was modified.
✅ Passed checks (2 passed)
Check name Status Explanation
Description check ✅ Passed The description follows the template structure with all major sections present: summary, changes, type, affected areas, testing, and checklist items.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 04-14-docs_update_langchain_sdk_docs_for_google

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor Author

BearTS commented Apr 14, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@BearTS BearTS marked this pull request as ready for review April 14, 2026 09:24
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Apr 14, 2026

Confidence Score: 5/5

  • Documentation-only change that corrects previously flagged issues; safe to merge.
  • All previously reported concerns (Python base_url validity confirmed upstream, JS baseUrl casing) are addressed. No logic, runtime, or security implications. No remaining P0/P1 findings.
  • No files require special attention.

Important Files Changed

Filename Overview
docs/integrations/langchain-sdk.mdx Updates Google model from gemini-1.5-flash to gemini-2.5-flash and corrects parameter names: google_api_basebase_url (Python) and baseURLbaseUrl (JavaScript); all four changed locations are consistent and correct.

Reviews (3): Last reviewed commit: "docs: update langchain js docs" | Re-trigger Greptile

Comment thread docs/integrations/langchain-sdk.mdx
coderabbitai[bot]
coderabbitai Bot previously approved these changes Apr 14, 2026
coderabbitai[bot]
coderabbitai Bot previously approved these changes Apr 14, 2026
Comment thread docs/integrations/langchain-sdk.mdx
Copy link
Copy Markdown
Contributor Author

BearTS commented Apr 14, 2026

Merge activity

  • Apr 14, 1:20 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Apr 14, 1:20 PM UTC: Graphite couldn't merge this PR because it failed for an unknown reason (You're not authorized to push to this branch).
  • Apr 15, 5:00 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Apr 15, 5:00 AM UTC: @Pratham-Mishra04 merged this pull request with Graphite.

@BearTS BearTS changed the base branch from v1.5.0 to graphite-base/2702 April 14, 2026 13:33
@BearTS BearTS force-pushed the 04-14-docs_update_langchain_sdk_docs_for_google branch from 28afe7f to e2decb2 Compare April 14, 2026 13:33
@BearTS BearTS force-pushed the graphite-base/2702 branch from 280f4e7 to a8cf690 Compare April 14, 2026 13:33
@BearTS BearTS changed the base branch from graphite-base/2702 to main April 14, 2026 13:33
@BearTS BearTS dismissed stale reviews from Pratham-Mishra04 and coderabbitai[bot] April 14, 2026 13:33

The base branch was changed.

@BearTS BearTS requested a review from Pratham-Mishra04 April 14, 2026 19:36
@Pratham-Mishra04 Pratham-Mishra04 merged commit 67938e2 into main Apr 15, 2026
16 of 18 checks passed
@Pratham-Mishra04 Pratham-Mishra04 deleted the 04-14-docs_update_langchain_sdk_docs_for_google branch April 15, 2026 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants